package com.kehutong.payfees.dto;

import com.kehutong.payfees.enums.Gender;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import java.time.LocalDate;

/**
 * 公众号
 *
 * @Author: liuzhen (liuxing521a@163.com)
 * @Date: 20/4/13 上午9:08
 */
public class WebChat extends Entity {

	private static final long serialVersionUID = 296129229105462474L;

	protected WebChat(String id) {
		super(id);
	}

	@Column(length = 64, comment = "昵称")
	private String nickName;

	@Column(length = 64, comment = "业主姓名")
	private String ownerName;

	@Column(comment = "客户手机号")
	private String mobile;

	@Column(comment = "性别")
	private Gender gender;

	@Column(length = 255, comment = "头像")
	private String avatar;

	@Column(comment = "生日")
	private LocalDate birthday;

	@Column(length = 64, comment = "邮箱")
	private String email;

	@JSONField(serialize = false)
	@Column(comment = "和公众号关联标识")
	private String unionid;

	@Column(length = 64, comment = "微信openId")
	private String openId;
	
	@Column(length = 127, comment = "描述")
	private String remark;
	
	@Column(comment = "是否关注公众号")
	private boolean subscribe;
	
	@JSONField(serialize = false)
	@Column(comment = "逻辑删除")
	private boolean deleted;

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Gender getGender() {
		return gender;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public LocalDate getBirthday() {
		return birthday;
	}

	public void setBirthday(LocalDate birthday) {
		this.birthday = birthday;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}
	
	public boolean isSubscribe() {
		return subscribe;
	}

	public void setSubscribe(boolean subscribe) {
		this.subscribe = subscribe;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

}
